package com.holly.unit.bpmn.activiti.pojo;

import com.holly.unit.core.pojo.request.BaseRequest;
import com.holly.unit.scanner.api.annotation.field.ChineseDescription;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 类描述: 流程业务操作 撤回操作参数封装
 *
 * @author fxr
 * @version 1.0.0
 * @date 2022/3/4 14:15
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ProcessBusiCancelRequest extends BaseRequest {

    @NotNull(message = "主键id不能为空", groups = {ProcessBusiCancelRequest.actCancel.class})
    @ChineseDescription("主键id")
    String id;
    @NotNull(message = "流程实例id不能为空", groups = {ProcessBusiCancelRequest.actCancel.class})
    @ChineseDescription("流程实例id")
    String procInstId;
    @NotNull(message = "撤回原因不能为空", groups = {ProcessBusiCancelRequest.actCancel.class})
    @ChineseDescription("撤回原因")
    String reason;

    public @interface actCancel{}

}
